package com.dormitory.manage.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dormitory.manage.pojo.StudentDormitory;
import com.dormitory.manage.vo.DormitoryQueryVo;

import java.util.List;

/**
 * @author Administrator
 * @version 1.0
 * @description StudentDormitoryService
 * @date 2023/4/7 0007 18:55
 */
public interface StudentDormitoryService extends IService<StudentDormitory> {
    StudentDormitory getStudentDormitoryById(long studentId);

    Page<StudentDormitory> getStudentDormitoryList(Page<StudentDormitory> page, DormitoryQueryVo dormitoryQueryVo);

    boolean addStudentDormitory(StudentDormitory studentDormitory);

    boolean deleteStudentDormitory(Integer dormitoryId);
}
